#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2022/4/16 10:14 上午
# @Author : wang
# @Email : 136697880@qq.com
# @File : bootstrap.py
# @Project : bugmgr
class BootStrap(object):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        for name, field in self.fields.items():
            field.widget.attrs['class'] = 'form-control'
            field.widget.attrs['placeholder'] = '请输入{}'.format(field.label)